#!/bin/bash
set -euo pipefail

if snapctl is-connected graphics-core20; then
  echo "Please disconnect the current provider for 'graphics-core20' before connecting a new one"
  exit 1
fi
